package org.lwd.datalink.domain.interceptor;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.lwd.datalink.domain.BaseEntity;

import java.util.Date;

/**
 * @Author: weidong.lin
 */
@Getter
@Setter
@ToString
public class InterceptorInfo extends BaseEntity {
    private Long id;
    private String name;
    private String desc;
    private InterceptorType type;
    private String content;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        InterceptorInfo that = (InterceptorInfo) o;

        return id.equals(that.id);

    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}
